package com.kuwou.workobject.controller;

import com.kuwou.workobject.pojo.vo.MusicPageVo;
import com.kuwou.workobject.pojo.vo.MusicVo;
import com.kuwou.workobject.service.MusicService;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;

//@RestController
@RequestMapping("/music")
@Controller
public class MusicController {

    @Autowired
    private MusicService musicService;

    @GetMapping("/queryMusicInfo/{mes}/{type}/{pageNo}")
    @ResponseBody
    public MusicPageVo queryMusicInfo(
            @PathVariable String mes,
            @PathVariable String type,
            @PathVariable int pageNo) throws IOException {
        return musicService.queryMusicInfo(mes, type,pageNo);
    }


}
